package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author melon
 * @since 2023-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Cashbook对象", description="")
public class Cashbook implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "城市")
    @TableField("city_id")
    private Integer cityId;


    @ApiModelProperty(value = "日记账类型")
    @TableField("cashbook_type")
    private Integer cashbookType;

    @ApiModelProperty(value = "科目")
    @TableField("subject_type")
    private Integer subjectType;

    @ApiModelProperty(value = "日期")
    private Date dates;

    @ApiModelProperty(value = "凭证")
    private String voucher;

    @ApiModelProperty(value = "摘要")
    private String abstracts;

    @ApiModelProperty(value = "借方金额")
    private BigDecimal income;

    @ApiModelProperty(value = "贷方金额")
    private BigDecimal expend;

    @ApiModelProperty(value = "余额")
    private BigDecimal balance;

    @ApiModelProperty(value = "经办人")
    @TableField("handled_by")
    private String handledBy;

    @ApiModelProperty(value = "制单人")
    @TableField("creator_by")
    private String creatorBy;

    @ApiModelProperty(value = "数据来源")
    private String sources;

    @ApiModelProperty(value = "数据来源id")
    @TableField("sources_id")
    private String sourcesId;

    @ApiModelProperty(value = "备注")
    private String notes;

    @ApiModelProperty(value = "结转 0 无 1 日")
    @TableField("carry_forward")
    private Integer carryForward;

    @ApiModelProperty(value = "是否做账 0 未做账 1 已做账")
    @TableField("accounting")
    private Integer accounting;


    @ApiModelProperty(value = "附件id")
    @TableField("annex_id")
    private String annexId;


    @ApiModelProperty(value = "系统创建日期")
    @TableField("create_time")
    private Date createTime;


    @ApiModelProperty(value = "结算系统id")
    @TableField(exist = false)
    private Integer balanceId;

    @ApiModelProperty(value = "结算系统")
    @TableField(exist = false)
    private Integer balanceType;

    @ApiModelProperty(value = "图片id")
    @TableField(exist = false)
    private String imgId;

    @ApiModelProperty(value = "图片")
    @TableField(exist = false)
    private    List<PurchaserRecordImg> imglist;

    @ApiModelProperty(value = "做账金额")
    @TableField(exist = false)
    private BigDecimal accountingPrice;






}
